﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}formui.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}admin-all.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}base.css"/>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-1.7.2.js"></script>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-ui-1.8.22.custom.min.js"></script>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}ui-lightness/jquery-ui-1.8.22.custom.css" />    
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery.ui.datepicker-zh-CN.js"></script>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-ui-timepicker-addon.js"></script>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-ui-timepicker-zh-CN.js"></script>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}Validform_v5.3.2_min.js"></script>
    <style type="text/css">
        .auto-style1 {
            height: 26px;
        }
    </style>
    
</head>
<body>
    <div class="alert alert-info">当前位置<b class="tip"></b>客户信息管理<b class="tip"></b>编辑客户信息</div>
        &nbsp;<a class="btn" id="Button3" href="{:U('Client/lst',array('id'=>$data['id'],'p'=>$p))}">返回客户信息列表</a>
        &nbsp;<a class="btn" id="Button3" href="{:U('Client/edit',array('id'=>$data['id'],'p'=>$p))}">编辑客户信息</a>
        &nbsp;<a class="btn" id="Button3" href="{:U('ClientContact/lst',array('id'=>$data['id'],'p'=>$p))}">联系人列表</a>
        &nbsp;<a class="btn" id="Button3" href="{:U('ClientAccount/lst',array('id'=>$data['id'],'p'=>$p))}">交往记录</a>
        &nbsp;<a class="btn" id="Button3" href="{:U('Order/lst',array('id'=>$data['id'],'p'=>$p))}">订单记录</a>
        <br/>
        <br/>
        <form name="main_form" class="demoform" id="demoform" method="POST" action="{:U('edit')}" enctype="multipart/form-data">
        <table class="tb" id="top" cellspacing="1" cellpadding="3" width="100%">
            <tr>
                <input type="hidden" name="id" value="{$data['id']}"/>
                <input type="hidden" name="p" value="{$p}"/>
                <td class="alert alert-info">客户编号</td>
                <td >{$data['id']}</td>
                <td class="alert alert-info">客户名称</td>
                <td><input type="text"  name="name" value="{$data['name']}" datatype="*1-20" errormsg="客户名称最多20个字符！"/>
                    <span style="color:red">*</span></td>
            </tr>
            <tr> 
                <td class="alert alert-info">地区</td>
                <td>
                <select name='area' datatype="*1-30" errormsg="地区最多30个字符！">
                    <option value=""> 请选择地区 </option>
                   <volist name="dqdata" id="v">
                       <eq name="v.value" value="$data.area">
                           <option value ="{$v['value']}" selected>{$v['value']}</option>
                       <else/>
                       <option value ="{$v['value']}" >{$v['value']}</option>
                       </eq>
                   </volist>
                </select>
                    <span style="color:red">*</span></td>
                <td class="alert alert-info">选择客户经理</td>
                <td><select name='mname' datatype="*1-30" errormsg="客户经理最多30个字符！">
                   <option value='' selected>选择指派给谁</option>
                    <volist name="adata" id="v">
                        <eq name="v.username" value="$data.mname">
                           <option value ="{$v['username']}" selected>{$v['username']}</option>
                       <else/>
                       <option value ="{$v['username']}" >{$v['username']}</option>
                       </eq>
                  
                    </volist>
                    </select>
                    <span style="color:red">*</span>
                </td>
            </tr>
            <tr>
                <td class="alert alert-info">客户等级</td>
                <td><select name='level' datatype="*1-30" errormsg="客户等级最多30个字符！">
            
                   <option value='' selected>选择客户等级</option>
                    <volist name="djdata" id="v">
                      <eq name="v.bar" value="$data.level">
                           <option value ="{$v['bar']}" selected>{$v['bar']}</option>
                       <else/>
                       <option value ="{$v['bar']}" >{$v['bar']}</option>
                       </eq>
                    </volist>
                    </select>
                    <span style="color:red">*</span>
                </td>
            </tr>
            <tr>
                <td class="alert alert-info">客户满意度</td>
                <td><select name='satisfied' datatype="*1-30" errormsg="客户满意度最多30个字符！">
                   <option value='' selected>选择客户满意度</option>
                    <volist name="mydata" id="v">
                       <eq name="v.bar" value="$data.satisfied">
                           <option value ="{$v['bar']}" selected>{$v['bar']}</option>
                       <else/>
                       <option value ="{$v['bar']}" >{$v['bar']}</option>
                       </eq>
                    </volist>
                    </select>
                    <span style="color:red">*</span>
                </td>
                <td class="alert alert-info">客户客户信用度</td>
                <td><select name='honor' datatype="*1-30" errormsg="客户信用度最多30个字符！">
                   <option value='' selected>选择客户信用度</option>
                    <volist name="xydata" id="v">
                       <eq name="v.bar" value="$data.honor">
                           <option value ="{$v['bar']}" selected>{$v['bar']}</option>
                       <else/>
                       <option value ="{$v['bar']}" >{$v['bar']}</option>
                       </eq>
                    </volist>
                    </select>
                    <span style="color:red">*</span>
                </td>
            </tr>
        </table>
        <table class="tb" id="top" cellspacing="1" cellpadding="3" width="100%">
            
            <tr>
                <td class="alert alert-info">地址</td>
                <td><input type="text"  name="address" value="{$data['address']} " datatype="*1-30" errormsg="地址最多30个字符！"/>
                    <span style="color:red">*</span></td>
           
                <td class="alert alert-info">邮政编码</td>
                <td><input type="text"  name="post" value="{$data['post']}" datatype="*1-30" errormsg="邮政编码最多30个字符！"/>
                    <span style="color:red">*</span></td>
            </tr>
            <tr>
                <td class="alert alert-info">电话</td>
                <td><input type="text"  name="phone" value="{$data['phone']}" datatype="*1-30" errormsg="电话最多30个字符！"/>
                    <span style="color:red">*</span></td>
                <td class="alert alert-info">传真</td>
                <td><input type="text"  name="to_phone" value="{$data['to_phone']}" datatype="*1-30" errormsg="传真最多30个字符！"/>
                    <span style="color:red">*</span></td>
                    
            </tr>
            <tr>
                <td class="alert alert-info">网址</td>
                <td><input type="text"  name="www" value="{$data['www']}" datatype="*1-30" errormsg="网址最多30个字符！"/>
                    <span style="color:red">*</span></td>
                </tr>
        </table>
            <table class="tb" id="top" cellspacing="1" cellpadding="3" width="100%">
            <tr>
                <td class="alert alert-info">营业执照注册号</td>
                <td><input type="text"  name="charter_id" value="{$data['charter_id']}" datatype="*0-30" errormsg="营业执照注册号最多30个字符！"/></td>
                <td class="alert alert-info">法人</td>
                <td><input type="text"  name="person" value="{$data['person']}" datatype="*1-30" errormsg="法人最多30个字符！"/>
                    <span style="color:red">*</span></td>
            </tr>   
            <tr>
                <td class="alert alert-info">注册资金</td>
                <td><input type="text"  name="have_money" value="{$data['have_money']}" datatype="*0-30" errormsg="注册资金最多30个字符！"/></td>
                <td class="alert alert-info">年营业额</td>
                <td><input type="text"  name="year_money" value="{$data['year_money']}" datatype="*0-30" errormsg="年营业额最多30个字符！"/></td>
            </tr>
            <tr>
            <td class="alert alert-info">开户银行</td>
                <td><input type="text"  name="bank" value="{$data['bank']}" datatype="*1-30" errormsg="开户银行最多30个字符！"/>
                    <span style="color:red">*</span></td>
            <td class="alert alert-info">银行账号</td>
                <td><input type="text"  name="bank_id" value="{$data['bank_id']}" datatype="*1-30" errormsg="银行账号最多30个字符！"/>
                    <span style="color:red">*</span></td>
            </tr>
            <tr>
            <td class="alert alert-info">地税登记号</td>
                <td><input type="text"  name="land_id" value="{$data['land_id']}" datatype="*0-30" errormsg="地税登记号最多30个字符！"/></td>
            <td class="alert alert-info">国税登记号</td>
                <td><input type="text"  name="country_id" value="{$data['country_id']}" datatype="*0-30" errormsg="国税登记号最多30个字符！"/></td>
            </tr>
            <tr>
                <td colspan="99" align="center">
                    <input type="submit" class="btn" id="Button3" value=" 确定 " />
                    <input type="reset" class="btn" id="Button3" value=" 重置 " />
                </td>
            </tr>
        </table>
        </form>
  
</body>
</html>
<script>
   $(".demoform").Validform();
</script>